﻿using System;
using System.Collections.Generic;
using System.Text;


namespace QzEbook.Common.Html
{
    public abstract class AbstactNode : INode
    {
        private List<INode> childNode;
        protected StringBuilder sb;

        protected List<INode> ChildNode
        {
            get { return childNode; }
            set { childNode = value; }
        }
        public AbstactNode()
        {
        }

        #region INode 成员

        public string innerHTML
        {
            get
            {
                return html();
            }
            set
            {
                throw new NotImplementedException();
            }
        }

        protected string html()
        {
            StringBuilder sb = new StringBuilder();
            return sb.ToString();
        }

        public bool appendChild(INode node)
        {
            ChildNode.Add(node);
            return true;
        }

        #endregion
    }
}